<%@page import="com.mmy.domain.permissionmenu.TConstMenu"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>菜单管理</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>系统设置</h2>			
		</div>
	</header>
	<section class="container">
	

			<div>
				
		<form action="updatemenu" method="post" >
			<div >
				<h4 class="info-h4">
					<i class="fa fa-caret-right" aria-hidden="true" ></i>修改菜单信息
				</h4>
			<table class="info-table">
				<tr>
					<th>上级菜单</th>
					<td>
						${strUpName}
					</td>
					<th>前后台标识</th>
					
					
						<c:choose>
						     <c:when test="${tConstMenu.getState() == 1}">
						           <td >前台</td>
						     </c:when>
						     <c:when test="${tConstMenu.getState() == 2}">
						           <td >后台</td>
						     </c:when>
						    
						    <c:otherwise>
						         <td>默认</td>
						    </c:otherwise>
						</c:choose>
						
					
				</tr>
				<tr>
					<th>菜单名称</th>
					<td>
						<input type="hidden" name="MenuID"  value="${tConstMenu.getMenuID()}" >
						<input type="text" name="MenuName" value="${tConstMenu.getMenuName()}" maxlength="50" /><span class="mustWrite">*</span>
					</td>
					<th>菜单url</th>
					<td>
						<input type="text" name="Url" value="${tConstMenu.getUrl()}" maxlength="300"/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th>菜单类型</th>
					
					
					
						<c:choose>
						     <c:when test="${tConstMenu.getType() == 0}">
						           <td >子菜单</td>
						     </c:when>
						     <c:when test="${tConstMenu.getType() == 1}">
						           <td >顶级菜单</td>
						     </c:when>
						    
						    <c:otherwise>
						         <td>操作链接</td>
						    </c:otherwise>
						</c:choose>
						
					
					<th>排序</th>
					<td>
						<input type="text" name="Sort" value="${tConstMenu.getSort()}" maxlength="2" /><span class="mustWrite">*</span>
					</td>				
				</tr>
				<tr>
					<th>备注</th>
					<td colspan="4">
						<textarea name="Memo" maxlength="256" >${tConstMenu.getMemo()}</textarea>
					</td>
				</tr>	
			</table>
			<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			
		
		</form>
				
			
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>